package jwximportjwt// DecodedAccessTokenHeader is the decoded header from the access tokentypeDecodedAccessTokenHeaderstruct { Alg string`json:"alg"` Typ string`json:"typ"` Kid string`json:"kid"`}// Claims served by keycloak inside the accessTokentypeClaimsstruct {jwt.StandardClaims Typ string`json:"typ,omitempty"` Azp string`json:"azp,omitempty"` AuthTime int`json:"auth_time,omitempty"` SessionState string`json:"session_state,omitempty"` Acr string`json:"acr,omitempty"` AllowedOrigins []string`json:"allowed-origins,omitempty"` RealmAccess RealmAccess`json:"realm_access,omitempty"` ResourceAccess ResourceAccess`json:"resource_access,omitempty"` Scope string`json:"scope,omitempty"` EmailVerified bool`json:"email_verified,omitempty"` Address Address`json:"address,omitempty"` Name string`json:"name,omitempty"` PreferredUsername string`json:"preferred_username,omitempty"` GivenName string`json:"given_name,omitempty"` FamilyName string`json:"family_name,omitempty"` Email string`json:"email,omitempty"` ClientID string`json:"clientId,omitempty"` ClientHost string`json:"clientHost,omitempty"` ClientIP string`json:"clientAddress,omitempty"`}// Address TODO what fields does any address have?typeAddressstruct {}// RealmAccess holds roles of the usertypeRealmAccessstruct { Roles []string`json:"roles,omitempty"`}// ResourceAccess holds TODO: What does it hold?typeResourceAccessstruct { RealmManagement RealmManagement`json:"realm-management,omitempty"` Account Account`json:"account,omitempty"`}// RealmManagement holds TODO: What does it hold?typeRealmManagementstruct { Roles []string`json:"roles,omitempty"`}// Account holds TODO: What does it hold?typeAccountstruct { Roles []string`json:"roles,omitempty"`}
The pages are generated with Goldsv0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.